package com.briup.ch07;

/**
 * @Author briup-adam
 * @Date 2023/10/10 上午11:21
 * @Description
 **/

public class NoNameInnerClass {
    public static void main(String[] args) {
        Flyable f=new ActionImpl();
        Flyable f1=new Flyable() {
            int a=10;
            @Override
            public void fly() {
                System.out.println(a);
            }
        };
        System.out.println(new Flyable() {
            int a = 10;

            @Override
            public void fly() {
                System.out.println(a);
            }
        }.a);
        new Object(){
            public void  show(){
                System.out.println("我爱学习 学习不爱我");
            }
        };
        Object o=new Object(){
            public void  show(){
                System.out.println("我爱学习 学习不爱我");
            }
        };



    }
}
